﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_ReportManage.aspx.cs" Inherits="Mod_ReportManage_frm_ReportManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <script language="javascript" src="../App_script/index.js"></script>
    <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
    <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
</head>
<body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0" onkeydown="FocusChangNext()">
    <form id="ReportManage" runat="server">
        <!-- 下拉子菜单 Begin -->
        <div id="divChildMenu" align="center" style="border-right: #cdccc1 1px solid; visibility:hidden; border-top: #cdccc1 1px solid; left: 680px; border-left: #cdccc1 1px solid; width: 120px; border-bottom: #cdccc1 1px solid; position: absolute; top: 31px; height: 40px; background-color: #e8e8e3">
            <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="text">
                <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                    <td width="20%" align="center" style="height: 18px"></td>
                    <td width="80%" align="left" style="height: 18px">
                        <asp:linkbutton ID="lbtnDelete0" runat="server" Text="作   废" Font-Overline="False" ForeColor="#4E4E4E" CommandName="0" OnClick="lbtnDelete_Click"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 1px"><hr style="width: 101px" /></td>
                </tr>
                <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                    <td width="20%" align="center" style="height: 25px"></td>
                    <td width="80%" align="left" style="height: 25px">
                        <asp:linkbutton ID="lbtnDelete1" Enabled="false" runat="server" Text="彻底作废" Font-Overline="False" ForeColor="#4E4E4E" CommandName="1" OnClick="lbtnDelete_Click"/>
                    </td>
                </tr>
            </table>
        </div>
        <!-- 下拉子菜单 End -->
        <table align="center" width="100%" height="449" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td height="35" align="left" background="../App_Images/b_12.gif">
                    <!-- 操作工具条 Begin -->
                    <table width="820" height="35" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>&nbsp;</td>
                            <td width="1">
                                <input type="hidden" id="hidButtonEdit" runat="server" style="width:0; height:0;">
                            </td>
                            <asp:Panel ID="panAdd" Visible="false" runat="server">
                            <td width="100">
                                <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                    <tr>
                                        <td align="center" width="100"><asp:imagebutton id="imgAdd" ImageUrl="../App_Images/b_18_1.gif" onmouseover="ChangImage(this, '../App_Images/b_18_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_18_1.gif')" runat="server" OnClick="imgAdd_Click" /></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="panRef" Visible="false" runat="server">
                            <td width="100">
                                <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                    <tr>
                                        <td align="center" width="70"><asp:ImageButton ID="ibtnRef" CommandName="0" ImageUrl="../App_Images/b_20_1.gif" onmouseover="ChangImage(this, '../App_Images/b_20_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_20_1.gif')" runat="server" OnClick="ibtnRef_Click" /></td>
                                        <td align="center" width="30"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="panDelete" Visible="false" runat="server">
                            <td width="130">
                                <table width="87" height="25" cellpadding="0" cellspacing="0"  border="0">
                                    <tr>
                                        <td align="center" width="70"><asp:ImageButton ID="ibtnDelete0" ImageUrl="../App_Images/b_19_1.gif" onmouseover="ChangImage(this, '../App_Images/b_19_2.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_3.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_1.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_4.gif')" runat="server" CommandName="0" OnClick="ibtnDelete0_Click" /></td>
                                        <td align="center" width="17"><img id="imgDelete" src="../App_Images/b_19_4.gif" style="cursor:hand" onmouseover="ChangImage(this, '../App_Images/b_19_3.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_4.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_1.gif')" onclick="ChildMenuVisible()" /></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <td width="10">&nbsp;</td>
                        </tr>
                    </table>
                    <!-- 操作工具条 End -->
                </td>
            </tr>
            <tr>
                <td height="60">
                    <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" class="text" style="border-bottom: #a1a7bb 1px solid">
                        <tr>
                            <td align="right" style="width: 109px"><asp:CheckBox ID="chkEdit" runat="server" Font-Bold="True" ForeColor="#398A39" Text="报表服务配置" style="cursor:hand" AutoPostBack="True" OnCheckedChanged="chkEdit_CheckedChanged" /></td>
                            <td align="right" style="width: 83px"> 服务器地址：</td>
                            <td align="left" style="width: 224px"><asp:TextBox ID="txtAddr" runat="server" Width="220px" CssClass="text" Enabled="False" BorderColor="#ACA899" BorderWidth="1px"></asp:TextBox></td>
                            <td align="right" style="width: 68px">报表宽度：</td>
                            <td align="left" style="width: 51px"><asp:TextBox ID="txtWidht" runat="server" CssClass="text" Width="40px" Enabled="False" BorderColor="#ACA899" BorderWidth="1px"></asp:TextBox></td>
                            <td align="right" style="width: 66px">报表高度：</td>
                            <td align="left" style="width: 62px"><asp:TextBox ID="txtHeight" runat="server" CssClass="text" Width="40px" Enabled="False" BorderColor="#ACA899" BorderWidth="1px"></asp:TextBox></td>
                            <td><asp:Button ID="btnServer" Enabled="false" runat="server" CssClass="text" Height="23px" Text="设  置" Width="55px" style="cursor:hand" onkeydown="this.click()" OnClick="btnServer_Click" />&nbsp;&nbsp;
                                <asp:Button ID="btnResult" Enabled="false" runat="server" CssClass="text" Height="23px" Text="取  消" Width="55px" style="cursor:hand" OnClick="btnResult_Click" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="left" style="height: 25px">
                    <!-- 翻页控制 Begin -->
                    <table width="820" height="25" cellpadding="0" cellspacing="0" border="0" class="text">
                        <tr>
                            <td align="center">
                                <asp:Label ID="lblRsCounts" runat="server" CssClass="text"/>
                                <asp:Label ID="lblPageCounts" runat="server" CssClass="text"/>
                                <asp:Label ID="lblCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                                <asp:linkbutton ID="lbtnFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                                <asp:linkbutton ID="lbtnPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                                <asp:linkbutton ID="lbtnNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                                <asp:linkbutton ID="lbtnEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;
                                <asp:Label ID="lblGoTxt1" runat="server" CssClass="text" Text="跳转到"/>
                                <asp:textBox ID="txtGo" onmouseover="this.select()" runat="server" CssClass="text" Height="13px" Width="18px" BorderColor="#7F9DB9" BorderWidth="1px" MaxLength="5"  AutoPostBack="True" OnTextChanged="txtGo_TextChanged"/>
                                <asp:Label ID="lblGoTxt2" runat="server" CssClass="text" Text="页"/>
                            </td>
                        </tr>
                    </table>
                    <!-- 翻页控制 End -->
                </td>
            </tr>
            <tr>
                <td height="379" valign="top">
                    <div id="divShowResult" style="overflow: auto; width: 820px; height: 387px; border-right: #a1a7bb 1px solid;">
                        <table width="820" height="25" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>
                                    <table width="820" height="25" cellspacing="0" cellpadding="0" border="1" class="text" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                        <tr height="25" style="cursor:default">
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">序 号</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">操 作</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: Red; height: 25px; width: 200px;">报表名称</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 180px;">报表URL地址</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: Gray ; height: 25px; width: 60px;">状 态</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px;">备注</td>
                                        </tr>
                                        <!-- 添加新记录面板 Begin -->
                                        <asp:panel ID="panAddRs" runat="server" Visible="false">
                                        <tr height="25" bgcolor="#E9F0EB">
                                            <td align="center" background="../App_Images/b_23.gif" style="width: 60px"></td>
                                            <td align="center" style="width: 60px">
                                                <asp:imagebutton id="imgCancel" imageurl="../App_Images/ico/4.gif" ToolTip="取消新增" runat="server" OnClick="imgCancel_Click" OnClientClick="return confirm('您真的要取消新增吗？');" />&nbsp;
                                                <asp:ImageButton ID="ibtnServer" OnClick="AddReportInfo" ImageUrl="../App_Images/ico/11.gif" ToolTip="保存新增" runat="server" />
                                            </td>
                                            <td align="center" style="width: 200px"><asp:TextBox ID="txt1" runat="server" CssClass="text" Width="190px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="1px"></asp:TextBox></td>
                                            <td align="center" style="width: 180px"><asp:TextBox ID="txt2" runat="server" CssClass="text" Width="170px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="1px"></asp:TextBox></td>
                                            <td align="center" style="width: 60px">
                                                <asp:DropDownList ID="drop3" runat="server" CssClass="text" Width="55" BackColor="Transparent" style="cursor:hand">
                                                    <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
                                                    <asp:ListItem Value="1">停用</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td align="center"><asp:TextBox ID="txt4" runat="server" CssClass="text" MaxLength="255" Width="240px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="1px" onkeydown="ButtonSubmit('ibtnServer')"></asp:TextBox></td>
                                        </tr>
                                       </asp:panel> 
                                       <!--添加新记录面板 End -->
                                    </table>
                                </td>
                            </tr>
                            <!-- 记录显示区 Begin -->
                            <tr>
                                <td style="height: 299px" valign="top">
                                    <asp:datagrid ID="dgrdResult" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="14" ShowHeader="False" Width="820" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" OnItemDataBound="dgrdResult_ItemDataBound">
                                        <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                        <Columns>
                                            <asp:TemplateColumn>
                                                <ItemTemplate>
                                                    <table width="820" height="20" cellpadding="0" cellspacing="0" border="1" bordercolor="#A1A7BB" style="border-collapse: collapse">
                                                        <tr id='tr' runat="server">
                                                            <td align="center" background="../App_Images/b_23.gif" style="width: 60px"><b><%# Container.ItemIndex + 1 %></b></td>
                                                            <td align="center" style="width: 60px">
                                                                <asp:CheckBox ID="chkSelect" onclick="ChangTrBgColorByDataGrid(this, 'tr', 'chkSelect')" style="cursor:hand" Visible="true" runat="server" />
                                                                <asp:imagebutton ID="ibtnEdit" OnClick="UpDateReportInfo" CommandName="0" CommandArgument="<%# Container.ItemIndex %>" ToolTip="编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/12.gif" runat="server" />
                                                                <asp:ImageButton ID="ibtnCan" OnClick="UpDateReportInfo" CommandName="1" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/4.gif" runat="server" OnClientClick="return confirm('您真的要取消编辑吗？')" />
                                                                <asp:ImageButton ID="ibtnSer" OnClick="UpDateReportInfo" CommandName="2" CommandArgument="<%# Container.ItemIndex %>" ToolTip="保存编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/11.gif" runat="server" />
                                                            </td>
                                                            <td align="center" style="width: 200px"><asp:TextBox ID="txtRs1" Text='<%# DataBinder.Eval(Container.DataItem, "name")%>' runat="server" CssClass="text" Width="190px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="0px" ReadOnly="true"></asp:TextBox></td>
                                                            <td align="center" style="width: 180px"><asp:TextBox ID="txtRs2" Text='<%# DataBinder.Eval(Container.DataItem, "url")%>' runat="server" CssClass="text" Width="170px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="0px" ReadOnly="true"></asp:TextBox></td>
                                                            <td align="center" style="width: 60px">
                                                                <asp:TextBox ID="txtRs3" runat="server" CssClass="text" Width="50" Visible="true" ReadOnly="true" BorderWidth="0" BackColor="Transparent"></asp:TextBox>
                                                                <asp:DropDownList ID="dropRs3" runat="server" CssClass="text" Width="55" BackColor="Transparent" style="cursor:hand" Visible="false">
                                                                    <asp:ListItem Value="0">正常</asp:ListItem>
                                                                    <asp:ListItem Value="1">停用</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td align="center"><asp:TextBox ID="txtRs4" Text='<%# DataBinder.Eval(Container.DataItem, "remark")%>' runat="server" CssClass="text" MaxLength="255" Width="240px" BackColor="Transparent" BorderColor="#7F9DB9" BorderWidth="0px" ReadOnly="true"></asp:TextBox></td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="is_stop" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                        </Columns>
                                        <ItemStyle BorderStyle="None" BorderWidth="0px" />
                                        <AlternatingItemStyle BackColor="#EEEFF2" />
                                    </asp:datagrid>
                                </td>
                            </tr>
                            <!-- 记录显示区 End -->
                        </table>
                    </div>
                </td>
            </tr>
        </table>
        <asp:label ID="lblJs" runat="Server"/>
    </form>
</body>
</html>
